<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bayesian Network: bn::inference::rejection_sampling&lt; RepresentMethod &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bayesian Network
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>bn</b></li><li class="navelem"><b>inference</b></li><li class="navelem"><a class="el" href="classbn_1_1inference_1_1rejection__sampling.html">rejection_sampling</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classbn_1_1inference_1_1rejection__sampling-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bn::inference::rejection_sampling&lt; RepresentMethod &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provide a class performing Rejection Sampling for <a class="el" href="classbn_1_1network.html" title="Provide a functions for each graph representing class. ">bn::network</a>.  
 <a href="classbn_1_1inference_1_1rejection__sampling.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rejection__sampling_8hpp_source.html">rejection_sampling.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:af5e896e06f68e2498b8b8724e8155d1b"><td class="memItemLeft" align="right" valign="top"><a id="af5e896e06f68e2498b8b8724e8155d1b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>query_type</b> = std::vector&lt; component::random_variable_ptr &gt;</td></tr>
<tr class="separator:af5e896e06f68e2498b8b8724e8155d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb420746603b0e4121e3d5e3124ae4f7"><td class="memItemLeft" align="right" valign="top"><a id="abb420746603b0e4121e3d5e3124ae4f7"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>evidence_type</b> = std::unordered_map&lt; component::random_variable_ptr, std::size_t &gt;</td></tr>
<tr class="separator:abb420746603b0e4121e3d5e3124ae4f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a282444b989f50479d8754a2dfcff0493"><td class="memItemLeft" align="right" valign="top"><a id="a282444b989f50479d8754a2dfcff0493"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>sample_type</b> = std::unordered_map&lt; component::random_variable_ptr, <a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; std::size_t &gt; &gt;</td></tr>
<tr class="separator:a282444b989f50479d8754a2dfcff0493"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e53e498abef14dea757f44314e5fdc1"><td class="memItemLeft" align="right" valign="top"><a id="a8e53e498abef14dea757f44314e5fdc1"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>probability_type</b> = std::unordered_map&lt; component::random_variable_ptr, <a class="el" href="classbn_1_1matrix.html">matrix</a>&lt; double &gt; &gt;</td></tr>
<tr class="separator:a8e53e498abef14dea757f44314e5fdc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6e3d25619e45560978a1eeacdb229b69"><td class="memItemLeft" align="right" valign="top"><a id="a6e3d25619e45560978a1eeacdb229b69"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>rejection_sampling</b> (<a class="el" href="classbn_1_1network.html">network</a>&lt; RepresentMethod &gt; const &amp;<a class="el" href="classbn_1_1network.html">network</a>, <a class="el" href="classbn_1_1cpt__manager.html">cpt_manager</a> const &amp;cpts)</td></tr>
<tr class="separator:a6e3d25619e45560978a1eeacdb229b69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee46257dd187b69bcd2ad4c34f0cedc5"><td class="memTemplParams" colspan="2"><a id="aee46257dd187b69bcd2ad4c34f0cedc5"></a>
template&lt;class NetworkType , class CptManagerType , class QueryType , class EvidenceType &gt; </td></tr>
<tr class="memitem:aee46257dd187b69bcd2ad4c34f0cedc5"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>rejection_sampling</b> (NetworkType &amp;&amp;<a class="el" href="classbn_1_1network.html">network</a>, CptManagerType &amp;&amp;cpts, QueryType &amp;&amp;queries=QueryType(), EvidenceType &amp;&amp;evidences=EvidenceType())</td></tr>
<tr class="separator:aee46257dd187b69bcd2ad4c34f0cedc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bdb0f71665c45e380c5ba5c3ced4f64"><td class="memItemLeft" align="right" valign="top"><a id="a8bdb0f71665c45e380c5ba5c3ced4f64"></a>
<a class="el" href="classbn_1_1inference_1_1rejection__sampling.html">rejection_sampling</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>set_query</b> (query_type queries)</td></tr>
<tr class="separator:a8bdb0f71665c45e380c5ba5c3ced4f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe288aba9f386d3dbcf74e8179806f03"><td class="memTemplParams" colspan="2"><a id="abe288aba9f386d3dbcf74e8179806f03"></a>
template&lt;class QueryType &gt; </td></tr>
<tr class="memitem:abe288aba9f386d3dbcf74e8179806f03"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1inference_1_1rejection__sampling.html">rejection_sampling</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>set_query</b> (QueryType &amp;&amp;queries)</td></tr>
<tr class="separator:abe288aba9f386d3dbcf74e8179806f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a446e20502f2a3c30107a4b92e3126b06"><td class="memItemLeft" align="right" valign="top"><a id="a446e20502f2a3c30107a4b92e3126b06"></a>
<a class="el" href="classbn_1_1inference_1_1rejection__sampling.html">rejection_sampling</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>set_evidence</b> (evidence_type evidences)</td></tr>
<tr class="separator:a446e20502f2a3c30107a4b92e3126b06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4516f16d24f95c50290d4aea3102130"><td class="memItemLeft" align="right" valign="top"><a id="af4516f16d24f95c50290d4aea3102130"></a>
query_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>query</b> () const noexcept</td></tr>
<tr class="separator:af4516f16d24f95c50290d4aea3102130"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cc2393ef193c36522c358fe9fc8cb79"><td class="memItemLeft" align="right" valign="top"><a id="a6cc2393ef193c36522c358fe9fc8cb79"></a>
evidence_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>evidence</b> () const noexcept</td></tr>
<tr class="separator:a6cc2393ef193c36522c358fe9fc8cb79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7eecb475c52fe682884dc279c0ddafe"><td class="memItemLeft" align="right" valign="top"><a id="af7eecb475c52fe682884dc279c0ddafe"></a>
sample_type const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>sample</b> () const noexcept</td></tr>
<tr class="separator:af7eecb475c52fe682884dc279c0ddafe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24e6f951662ec1ea033c679f38772d08"><td class="memItemLeft" align="right" valign="top"><a id="a24e6f951662ec1ea033c679f38772d08"></a>
probability_type&#160;</td><td class="memItemRight" valign="bottom"><b>probability</b> () const</td></tr>
<tr class="separator:a24e6f951662ec1ea033c679f38772d08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af853032b5ea95d477f9d2a754fc5840b"><td class="memItemLeft" align="right" valign="top"><a id="af853032b5ea95d477f9d2a754fc5840b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>reset</b> ()</td></tr>
<tr class="separator:af853032b5ea95d477f9d2a754fc5840b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1b94a6dbe20ed2be33014e83911a629"><td class="memItemLeft" align="right" valign="top"><a id="af1b94a6dbe20ed2be33014e83911a629"></a>
sample_type&#160;</td><td class="memItemRight" valign="bottom"><b>run</b> (std::size_t const iterator_num)</td></tr>
<tr class="separator:af1b94a6dbe20ed2be33014e83911a629"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class RepresentMethod&gt;<br />
class bn::inference::rejection_sampling&lt; RepresentMethod &gt;</h3>

<p>Provide a class performing Rejection Sampling for <a class="el" href="classbn_1_1network.html" title="Provide a functions for each graph representing class. ">bn::network</a>. </p>
<p>TODO: Old-fashioned interface. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>bayesian/inference/<a class="el" href="rejection__sampling_8hpp_source.html">rejection_sampling.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
